<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">

          <div class="col-md-6">
            <div class="form-group">
                <label>公司名称</label>
                <input class="form-control" name="campany_name" placeholder="请输入公司称" value="{$info['campany_name']|default=''}" type="text">
            </div>
          </div>
        <div class="col-md-6">
            <div class="form-group">
                <label>默认显示LOGO图片</label>
                <span class="">（建议上传260×160的图片）</span>
                <br/>
                {assign name="default_logo" value="$info.default_logo|default='0'" /}
                {:widget('file/index', ['name' => 'default_logo', 'value' => $default_logo, 'type' => 'img'])}
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label>特效显示LOGO图片</label>
                <span class="">（建议上传260×160的图片）</span>
                <br/>
                {assign name="logo_id" value="$info.logo_id|default='0'" /}
                {:widget('file/index', ['name' => 'logo_id', 'value' => $logo_id, 'type' => 'img'])}
            </div>
        </div>
            
        <div class="col-md-6">
             <div class="form-group">
                 <label>是否推荐至首页</label>
                 <span>（若是则在首页显示）</span>
                 <div>
                     <label class="margin-r-5"><input type="radio" name="is_index" value="1"> 是</label>
                     <label><input type="radio" name="is_index"  value="0"> 否</label>
                 </div>
             </div>
         </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
        
      </div>
        
      </div>
      </div>
</form>

<script type="text/javascript">
    
   ob.setValue("is_index", {$info.is_index|default=0});
       
</script>